﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000BDD RID: 3037
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MonopolyTakePhaseRewardScRsp : IMessage<MonopolyTakePhaseRewardScRsp>, IMessage, IEquatable<MonopolyTakePhaseRewardScRsp>, IDeepCloneable<MonopolyTakePhaseRewardScRsp>, IBufferMessage
	{
		// Token: 0x1700263A RID: 9786
		// (get) Token: 0x060087CB RID: 34763 RVA: 0x0016882B File Offset: 0x00166A2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MonopolyTakePhaseRewardScRsp> Parser
		{
			get
			{
				return MonopolyTakePhaseRewardScRsp._parser;
			}
		}

		// Token: 0x1700263B RID: 9787
		// (get) Token: 0x060087CC RID: 34764 RVA: 0x00168832 File Offset: 0x00166A32
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MonopolyTakePhaseRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700263C RID: 9788
		// (get) Token: 0x060087CD RID: 34765 RVA: 0x00168844 File Offset: 0x00166A44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MonopolyTakePhaseRewardScRsp.Descriptor;
			}
		}

		// Token: 0x060087CE RID: 34766 RVA: 0x0016884B File Offset: 0x00166A4B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyTakePhaseRewardScRsp()
		{
		}

		// Token: 0x060087CF RID: 34767 RVA: 0x00168860 File Offset: 0x00166A60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyTakePhaseRewardScRsp(MonopolyTakePhaseRewardScRsp other) : this()
		{
			this.oACGANOMFMM_ = other.oACGANOMFMM_.Clone();
			this.retcode_ = other.retcode_;
			this.rewardList_ = ((other.rewardList_ != null) ? other.rewardList_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060087D0 RID: 34768 RVA: 0x001688BD File Offset: 0x00166ABD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyTakePhaseRewardScRsp Clone()
		{
			return new MonopolyTakePhaseRewardScRsp(this);
		}

		// Token: 0x1700263D RID: 9789
		// (get) Token: 0x060087D1 RID: 34769 RVA: 0x001688C5 File Offset: 0x00166AC5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> OACGANOMFMM
		{
			get
			{
				return this.oACGANOMFMM_;
			}
		}

		// Token: 0x1700263E RID: 9790
		// (get) Token: 0x060087D2 RID: 34770 RVA: 0x001688CD File Offset: 0x00166ACD
		// (set) Token: 0x060087D3 RID: 34771 RVA: 0x001688D5 File Offset: 0x00166AD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700263F RID: 9791
		// (get) Token: 0x060087D4 RID: 34772 RVA: 0x001688DE File Offset: 0x00166ADE
		// (set) Token: 0x060087D5 RID: 34773 RVA: 0x001688E6 File Offset: 0x00166AE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList RewardList
		{
			get
			{
				return this.rewardList_;
			}
			set
			{
				this.rewardList_ = value;
			}
		}

		// Token: 0x060087D6 RID: 34774 RVA: 0x001688EF File Offset: 0x00166AEF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MonopolyTakePhaseRewardScRsp);
		}

		// Token: 0x060087D7 RID: 34775 RVA: 0x00168900 File Offset: 0x00166B00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MonopolyTakePhaseRewardScRsp other)
		{
			return other != null && (other == this || (this.oACGANOMFMM_.Equals(other.oACGANOMFMM_) && this.Retcode == other.Retcode && object.Equals(this.RewardList, other.RewardList) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060087D8 RID: 34776 RVA: 0x00168964 File Offset: 0x00166B64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.oACGANOMFMM_.GetHashCode();
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rewardList_ != null)
			{
				num ^= this.RewardList.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060087D9 RID: 34777 RVA: 0x001689C7 File Offset: 0x00166BC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060087DA RID: 34778 RVA: 0x001689CF File Offset: 0x00166BCF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060087DB RID: 34779 RVA: 0x001689D8 File Offset: 0x00166BD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.rewardList_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.RewardList);
			}
			this.oACGANOMFMM_.WriteTo(ref output, MonopolyTakePhaseRewardScRsp._repeated_oACGANOMFMM_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060087DC RID: 34780 RVA: 0x00168A44 File Offset: 0x00166C44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.oACGANOMFMM_.CalculateSize(MonopolyTakePhaseRewardScRsp._repeated_oACGANOMFMM_codec);
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rewardList_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RewardList);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060087DD RID: 34781 RVA: 0x00168AB0 File Offset: 0x00166CB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MonopolyTakePhaseRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.oACGANOMFMM_.Add(other.oACGANOMFMM_);
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rewardList_ != null)
			{
				if (this.rewardList_ == null)
				{
					this.RewardList = new ItemList();
				}
				this.RewardList.MergeFrom(other.RewardList);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060087DE RID: 34782 RVA: 0x00168B29 File Offset: 0x00166D29
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060087DF RID: 34783 RVA: 0x00168B34 File Offset: 0x00166D34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 82U)
				{
					if (num == 16U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 82U)
					{
						if (this.rewardList_ == null)
						{
							this.RewardList = new ItemList();
						}
						input.ReadMessage(this.RewardList);
						continue;
					}
				}
				else if (num == 120U || num == 122U)
				{
					this.oACGANOMFMM_.AddEntriesFrom(ref input, MonopolyTakePhaseRewardScRsp._repeated_oACGANOMFMM_codec);
					continue;
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040033A8 RID: 13224
		private static readonly MessageParser<MonopolyTakePhaseRewardScRsp> _parser = new MessageParser<MonopolyTakePhaseRewardScRsp>(() => new MonopolyTakePhaseRewardScRsp());

		// Token: 0x040033A9 RID: 13225
		private UnknownFieldSet _unknownFields;

		// Token: 0x040033AA RID: 13226
		public const int OACGANOMFMMFieldNumber = 15;

		// Token: 0x040033AB RID: 13227
		private static readonly FieldCodec<uint> _repeated_oACGANOMFMM_codec = FieldCodec.ForUInt32(122U);

		// Token: 0x040033AC RID: 13228
		private readonly RepeatedField<uint> oACGANOMFMM_ = new RepeatedField<uint>();

		// Token: 0x040033AD RID: 13229
		public const int RetcodeFieldNumber = 2;

		// Token: 0x040033AE RID: 13230
		private uint retcode_;

		// Token: 0x040033AF RID: 13231
		public const int RewardListFieldNumber = 10;

		// Token: 0x040033B0 RID: 13232
		private ItemList rewardList_;
	}
}
